//
//  LYTableController.h
//  DaBaiService
//
//  Created by Mac-Mini-KingVision on 15/12/16.
//  Copyright © 2015年 Mac-Mini-KingVision. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LYTableViewCell.h"

@class LYTableController;
@class LYTableViewCell;
@protocol LYTableControllerDelegate <NSObject>

-(void)tableController:(LYTableController *)tableController didSelectRowAtIndexPath:(NSIndexPath *)indexPath data:(id)data;
-(void)tableController:(LYTableController *)tableController didClickSubViewIncell:(LYTableViewCell *)cell subView:(id)subView indexPath:(NSIndexPath *)indexPath data:(id)data;


@end




@interface LYTableController : NSObject<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, weak) IBOutlet UITableView *tableView;

@property(nonatomic,assign) IBInspectable BOOL autoHeight;

@property(nonatomic,strong) IBInspectable NSString *classForCellString;

@property(nonatomic,assign) IBInspectable BOOL hasRefreshHeader;

@property(nonatomic,assign) IBInspectable BOOL hasLoadMoreFooter;

@property(nonatomic, strong) NSMutableArray *dataSource;

@property (nonatomic, assign) NSInteger pageIndex;

@property (nonatomic, assign) NSInteger totalCount;

@property (nonatomic, weak) id<LYTableControllerDelegate> delegate;

@end
